﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Baosight.ZNH.ZMCommon;
using Baosight.Platform.Core;
using Baosight.Platform.Core.ServiceModel;
using Baosight.Platform.Core.UI.Controls;
using Telerik.Windows.Controls;
using Baosight.ZNH.ZMCommon.ChildWindows;
using Baosight.ZNH.ZMCM.UI.Utils;


namespace Baosight.ZNH.ZMCM.UI
{
    /// <summary>
    /// 初始数据主表  
    /// </summary>
    /// Title:ZMCMG2
    /// Copyright:Baosight Software LTD.co Copyright (c) 2011
    /// Company:上海宝信软件股份有限公司
    /// Author: 张坤
    /// Version: 1.0
    /// History:
    ///       2010-12-14  张坤   [创建]
    ///
    public partial class ZMCMG2 : EFViewCmes
    {
        public ZMCMG2()
        {
            InitializeComponent();
            this.BeforeAction += OnBeforeAction;
        }

        /// 修改前设置属性
        public void OnBeforeAction(object sender, EventArgs e)
        {
            EFViewCmesProperty _view = new EFViewCmesProperty();
            _view.EFGridCheckedRows = this.sub_grid.GetCheckedEIRows();
            _view.ViewType = "tabitem";
            _view.Args.Add("fdDepotCode", this.fdDepotCode.Value.ToString());//外键赋值
            _view.Args.Add("fdDepotName", this.fdDepotName.Value.ToString());//外键赋值
            this.ViewProperty = _view;
        }
    }
}
